home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Mania 4
/
MacMania 4.toast
/
/
Demo's
/
Igor Demo Pro
/
1 PutContentsIn Igor Pro Folder
/
WaveMetrics Procedures
/
Math Functions
/
Math Utility Functions
< prev
next >
Wrap
Text File
|
1994-02-18
|
327b
|
27 lines
| return log base 2
Function/D log2(x)
variable/D x
return 1.442695040888963*ln(x)
end
| return the smallest power of 2 not smaller than x
Function/D CeilPwr2(x)
variable/D x
return 2^(ceil(log2(x)))
end
| return sin(x)/x
Function/D sinc(x)
Variable/D x
if(x==0)
return 1
else
return sin(x)/x
endif
end